package pub.dsb.spring.bean;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * <p>
 * </p>
 *
 * @author Yi
 * @version V1.0.0
 * @date 2020/12/10 11:08
 * @modificationHistory=========================逻辑或功能性重大变更记录
 * @modify By: {修改人} 2020/12/10 11:08
 * @modify reason: {方法名}:{原因}
 * ...
 * @since V1.0.0
 */
public class AppMain {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext("pub.dsb.spring.bean.componentscan");
        Object helloBean = context.getBean("helloBean");
        Object secondHelloBean = context.getBean("secondHelloBean");
        System.out.println(helloBean.toString());
        System.out.println(secondHelloBean.toString());
    }

}
